package com.project.poetry.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.poetry.service.entity.dto.progress.ContinueProgressDTO;
import com.project.poetry.service.entity.dto.progress.ProgressDTO;
import com.project.poetry.service.entity.po.progress.ProgressPO;
import com.project.poetry.service.entity.po.user.UserPO;

/**
 * 进度业务层接口
 * @author mengxj
 */
public interface ProgressService extends IService<ProgressPO> {

    /**
     * 保存游戏进度
     * @param progress 游戏进度
     */
    void saveProgress(ProgressDTO progress);

    /**
     * 根据游戏进度继续游戏
     * @param relationId 关系id
     * @param user 当前人
     * @return 进度与关联对象信息
     */
    ContinueProgressDTO continueProgress(Long relationId, UserPO user);
}
